module.exports = {
  /*
  ** Headers of the page
  */
  head: {
    title: '君喆博学网',
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: 'xc-portal' }
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
      { rel: 'stylesheet', type: 'css', href: '/static/normalize-css/normalize.css' },
      { rel: 'stylesheet', type: 'css', href: '/static/bootstrap/dist/css/bootstrap.css' },
      { rel: 'stylesheet', type: 'css', href: '/static/css/page-learing-index.css' },
      { rel: 'stylesheet', type: 'css', href: '/static/css/page-header.css' },

    ]
  },
  css: [
    'highlight.js/styles/github.css',
    'element-ui/lib/theme-chalk/index.css',
  ],
  loaders:[
    {
      test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
      loader: 'url-loader',
      query: {
        limit: 1000, // 1 KO
        name: 'fonts.[name].[hash:7].[ext]'
      }
    }

  ],
  /*
  ** Customize the progress bar color
  */
  loading: { color: '#3B8070' },
  /*
  ** Build configuration
  */
  build: {
    vendor: ['axios','element-ui'],



  },
  modules: ['@nuxtjs/pwa', '@nuxtjs/axios','@nuxtjs/proxy'],
  plugins: [{src: '~plugins/element-ui', ssr: true},

  ],
  proxy: [

  ]
}
